package com.intellagric.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class TraceProduceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TraceProduceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("price is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("price is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(Float value) {
            addCriterion("price =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(Float value) {
            addCriterion("price <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(Float value) {
            addCriterion("price >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(Float value) {
            addCriterion("price >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(Float value) {
            addCriterion("price <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(Float value) {
            addCriterion("price <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<Float> values) {
            addCriterion("price in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<Float> values) {
            addCriterion("price not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(Float value1, Float value2) {
            addCriterion("price between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(Float value1, Float value2) {
            addCriterion("price not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPicIsNull() {
            addCriterion("pic is null");
            return (Criteria) this;
        }

        public Criteria andPicIsNotNull() {
            addCriterion("pic is not null");
            return (Criteria) this;
        }

        public Criteria andPicEqualTo(String value) {
            addCriterion("pic =", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicNotEqualTo(String value) {
            addCriterion("pic <>", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicGreaterThan(String value) {
            addCriterion("pic >", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicGreaterThanOrEqualTo(String value) {
            addCriterion("pic >=", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicLessThan(String value) {
            addCriterion("pic <", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicLessThanOrEqualTo(String value) {
            addCriterion("pic <=", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicLike(String value) {
            addCriterion("pic like", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicNotLike(String value) {
            addCriterion("pic not like", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicIn(List<String> values) {
            addCriterion("pic in", values, "pic");
            return (Criteria) this;
        }

        public Criteria andPicNotIn(List<String> values) {
            addCriterion("pic not in", values, "pic");
            return (Criteria) this;
        }

        public Criteria andPicBetween(String value1, String value2) {
            addCriterion("pic between", value1, value2, "pic");
            return (Criteria) this;
        }

        public Criteria andPicNotBetween(String value1, String value2) {
            addCriterion("pic not between", value1, value2, "pic");
            return (Criteria) this;
        }

        public Criteria andCategoryIdIsNull() {
            addCriterion("category_id is null");
            return (Criteria) this;
        }

        public Criteria andCategoryIdIsNotNull() {
            addCriterion("category_id is not null");
            return (Criteria) this;
        }

        public Criteria andCategoryIdEqualTo(String value) {
            addCriterion("category_id =", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdNotEqualTo(String value) {
            addCriterion("category_id <>", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdGreaterThan(String value) {
            addCriterion("category_id >", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdGreaterThanOrEqualTo(String value) {
            addCriterion("category_id >=", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdLessThan(String value) {
            addCriterion("category_id <", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdLessThanOrEqualTo(String value) {
            addCriterion("category_id <=", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdLike(String value) {
            addCriterion("category_id like", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdNotLike(String value) {
            addCriterion("category_id not like", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdIn(List<String> values) {
            addCriterion("category_id in", values, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdNotIn(List<String> values) {
            addCriterion("category_id not in", values, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdBetween(String value1, String value2) {
            addCriterion("category_id between", value1, value2, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdNotBetween(String value1, String value2) {
            addCriterion("category_id not between", value1, value2, "categoryId");
            return (Criteria) this;
        }

        public Criteria andBatchIdIsNull() {
            addCriterion("batch_id is null");
            return (Criteria) this;
        }

        public Criteria andBatchIdIsNotNull() {
            addCriterion("batch_id is not null");
            return (Criteria) this;
        }

        public Criteria andBatchIdEqualTo(String value) {
            addCriterion("batch_id =", value, "batchId");
            return (Criteria) this;
        }

        public Criteria andBatchIdNotEqualTo(String value) {
            addCriterion("batch_id <>", value, "batchId");
            return (Criteria) this;
        }

        public Criteria andBatchIdGreaterThan(String value) {
            addCriterion("batch_id >", value, "batchId");
            return (Criteria) this;
        }

        public Criteria andBatchIdGreaterThanOrEqualTo(String value) {
            addCriterion("batch_id >=", value, "batchId");
            return (Criteria) this;
        }

        public Criteria andBatchIdLessThan(String value) {
            addCriterion("batch_id <", value, "batchId");
            return (Criteria) this;
        }

        public Criteria andBatchIdLessThanOrEqualTo(String value) {
            addCriterion("batch_id <=", value, "batchId");
            return (Criteria) this;
        }

        public Criteria andBatchIdLike(String value) {
            addCriterion("batch_id like", value, "batchId");
            return (Criteria) this;
        }

        public Criteria andBatchIdNotLike(String value) {
            addCriterion("batch_id not like", value, "batchId");
            return (Criteria) this;
        }

        public Criteria andBatchIdIn(List<String> values) {
            addCriterion("batch_id in", values, "batchId");
            return (Criteria) this;
        }

        public Criteria andBatchIdNotIn(List<String> values) {
            addCriterion("batch_id not in", values, "batchId");
            return (Criteria) this;
        }

        public Criteria andBatchIdBetween(String value1, String value2) {
            addCriterion("batch_id between", value1, value2, "batchId");
            return (Criteria) this;
        }

        public Criteria andBatchIdNotBetween(String value1, String value2) {
            addCriterion("batch_id not between", value1, value2, "batchId");
            return (Criteria) this;
        }

        public Criteria andManufactureTimeIsNull() {
            addCriterion("manufacture_time is null");
            return (Criteria) this;
        }

        public Criteria andManufactureTimeIsNotNull() {
            addCriterion("manufacture_time is not null");
            return (Criteria) this;
        }

        public Criteria andManufactureTimeEqualTo(Date value) {
            addCriterionForJDBCDate("manufacture_time =", value, "manufactureTime");
            return (Criteria) this;
        }

        public Criteria andManufactureTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("manufacture_time <>", value, "manufactureTime");
            return (Criteria) this;
        }

        public Criteria andManufactureTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("manufacture_time >", value, "manufactureTime");
            return (Criteria) this;
        }

        public Criteria andManufactureTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("manufacture_time >=", value, "manufactureTime");
            return (Criteria) this;
        }

        public Criteria andManufactureTimeLessThan(Date value) {
            addCriterionForJDBCDate("manufacture_time <", value, "manufactureTime");
            return (Criteria) this;
        }

        public Criteria andManufactureTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("manufacture_time <=", value, "manufactureTime");
            return (Criteria) this;
        }

        public Criteria andManufactureTimeIn(List<Date> values) {
            addCriterionForJDBCDate("manufacture_time in", values, "manufactureTime");
            return (Criteria) this;
        }

        public Criteria andManufactureTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("manufacture_time not in", values, "manufactureTime");
            return (Criteria) this;
        }

        public Criteria andManufactureTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("manufacture_time between", value1, value2, "manufactureTime");
            return (Criteria) this;
        }

        public Criteria andManufactureTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("manufacture_time not between", value1, value2, "manufactureTime");
            return (Criteria) this;
        }

        public Criteria andMachiningTimeIsNull() {
            addCriterion("machining_time is null");
            return (Criteria) this;
        }

        public Criteria andMachiningTimeIsNotNull() {
            addCriterion("machining_time is not null");
            return (Criteria) this;
        }

        public Criteria andMachiningTimeEqualTo(Date value) {
            addCriterionForJDBCDate("machining_time =", value, "machiningTime");
            return (Criteria) this;
        }

        public Criteria andMachiningTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("machining_time <>", value, "machiningTime");
            return (Criteria) this;
        }

        public Criteria andMachiningTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("machining_time >", value, "machiningTime");
            return (Criteria) this;
        }

        public Criteria andMachiningTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("machining_time >=", value, "machiningTime");
            return (Criteria) this;
        }

        public Criteria andMachiningTimeLessThan(Date value) {
            addCriterionForJDBCDate("machining_time <", value, "machiningTime");
            return (Criteria) this;
        }

        public Criteria andMachiningTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("machining_time <=", value, "machiningTime");
            return (Criteria) this;
        }

        public Criteria andMachiningTimeIn(List<Date> values) {
            addCriterionForJDBCDate("machining_time in", values, "machiningTime");
            return (Criteria) this;
        }

        public Criteria andMachiningTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("machining_time not in", values, "machiningTime");
            return (Criteria) this;
        }

        public Criteria andMachiningTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("machining_time between", value1, value2, "machiningTime");
            return (Criteria) this;
        }

        public Criteria andMachiningTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("machining_time not between", value1, value2, "machiningTime");
            return (Criteria) this;
        }

        public Criteria andManufactorIdIsNull() {
            addCriterion("manufactor_id is null");
            return (Criteria) this;
        }

        public Criteria andManufactorIdIsNotNull() {
            addCriterion("manufactor_id is not null");
            return (Criteria) this;
        }

        public Criteria andManufactorIdEqualTo(String value) {
            addCriterion("manufactor_id =", value, "manufactorId");
            return (Criteria) this;
        }

        public Criteria andManufactorIdNotEqualTo(String value) {
            addCriterion("manufactor_id <>", value, "manufactorId");
            return (Criteria) this;
        }

        public Criteria andManufactorIdGreaterThan(String value) {
            addCriterion("manufactor_id >", value, "manufactorId");
            return (Criteria) this;
        }

        public Criteria andManufactorIdGreaterThanOrEqualTo(String value) {
            addCriterion("manufactor_id >=", value, "manufactorId");
            return (Criteria) this;
        }

        public Criteria andManufactorIdLessThan(String value) {
            addCriterion("manufactor_id <", value, "manufactorId");
            return (Criteria) this;
        }

        public Criteria andManufactorIdLessThanOrEqualTo(String value) {
            addCriterion("manufactor_id <=", value, "manufactorId");
            return (Criteria) this;
        }

        public Criteria andManufactorIdLike(String value) {
            addCriterion("manufactor_id like", value, "manufactorId");
            return (Criteria) this;
        }

        public Criteria andManufactorIdNotLike(String value) {
            addCriterion("manufactor_id not like", value, "manufactorId");
            return (Criteria) this;
        }

        public Criteria andManufactorIdIn(List<String> values) {
            addCriterion("manufactor_id in", values, "manufactorId");
            return (Criteria) this;
        }

        public Criteria andManufactorIdNotIn(List<String> values) {
            addCriterion("manufactor_id not in", values, "manufactorId");
            return (Criteria) this;
        }

        public Criteria andManufactorIdBetween(String value1, String value2) {
            addCriterion("manufactor_id between", value1, value2, "manufactorId");
            return (Criteria) this;
        }

        public Criteria andManufactorIdNotBetween(String value1, String value2) {
            addCriterion("manufactor_id not between", value1, value2, "manufactorId");
            return (Criteria) this;
        }

        public Criteria andLogisticsCompanyIdIsNull() {
            addCriterion("logistics_company_id is null");
            return (Criteria) this;
        }

        public Criteria andLogisticsCompanyIdIsNotNull() {
            addCriterion("logistics_company_id is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticsCompanyIdEqualTo(String value) {
            addCriterion("logistics_company_id =", value, "logisticsCompanyId");
            return (Criteria) this;
        }

        public Criteria andLogisticsCompanyIdNotEqualTo(String value) {
            addCriterion("logistics_company_id <>", value, "logisticsCompanyId");
            return (Criteria) this;
        }

        public Criteria andLogisticsCompanyIdGreaterThan(String value) {
            addCriterion("logistics_company_id >", value, "logisticsCompanyId");
            return (Criteria) this;
        }

        public Criteria andLogisticsCompanyIdGreaterThanOrEqualTo(String value) {
            addCriterion("logistics_company_id >=", value, "logisticsCompanyId");
            return (Criteria) this;
        }

        public Criteria andLogisticsCompanyIdLessThan(String value) {
            addCriterion("logistics_company_id <", value, "logisticsCompanyId");
            return (Criteria) this;
        }

        public Criteria andLogisticsCompanyIdLessThanOrEqualTo(String value) {
            addCriterion("logistics_company_id <=", value, "logisticsCompanyId");
            return (Criteria) this;
        }

        public Criteria andLogisticsCompanyIdLike(String value) {
            addCriterion("logistics_company_id like", value, "logisticsCompanyId");
            return (Criteria) this;
        }

        public Criteria andLogisticsCompanyIdNotLike(String value) {
            addCriterion("logistics_company_id not like", value, "logisticsCompanyId");
            return (Criteria) this;
        }

        public Criteria andLogisticsCompanyIdIn(List<String> values) {
            addCriterion("logistics_company_id in", values, "logisticsCompanyId");
            return (Criteria) this;
        }

        public Criteria andLogisticsCompanyIdNotIn(List<String> values) {
            addCriterion("logistics_company_id not in", values, "logisticsCompanyId");
            return (Criteria) this;
        }

        public Criteria andLogisticsCompanyIdBetween(String value1, String value2) {
            addCriterion("logistics_company_id between", value1, value2, "logisticsCompanyId");
            return (Criteria) this;
        }

        public Criteria andLogisticsCompanyIdNotBetween(String value1, String value2) {
            addCriterion("logistics_company_id not between", value1, value2, "logisticsCompanyId");
            return (Criteria) this;
        }

        public Criteria andSalesUnitIdIsNull() {
            addCriterion("sales_unit_id is null");
            return (Criteria) this;
        }

        public Criteria andSalesUnitIdIsNotNull() {
            addCriterion("sales_unit_id is not null");
            return (Criteria) this;
        }

        public Criteria andSalesUnitIdEqualTo(String value) {
            addCriterion("sales_unit_id =", value, "salesUnitId");
            return (Criteria) this;
        }

        public Criteria andSalesUnitIdNotEqualTo(String value) {
            addCriterion("sales_unit_id <>", value, "salesUnitId");
            return (Criteria) this;
        }

        public Criteria andSalesUnitIdGreaterThan(String value) {
            addCriterion("sales_unit_id >", value, "salesUnitId");
            return (Criteria) this;
        }

        public Criteria andSalesUnitIdGreaterThanOrEqualTo(String value) {
            addCriterion("sales_unit_id >=", value, "salesUnitId");
            return (Criteria) this;
        }

        public Criteria andSalesUnitIdLessThan(String value) {
            addCriterion("sales_unit_id <", value, "salesUnitId");
            return (Criteria) this;
        }

        public Criteria andSalesUnitIdLessThanOrEqualTo(String value) {
            addCriterion("sales_unit_id <=", value, "salesUnitId");
            return (Criteria) this;
        }

        public Criteria andSalesUnitIdLike(String value) {
            addCriterion("sales_unit_id like", value, "salesUnitId");
            return (Criteria) this;
        }

        public Criteria andSalesUnitIdNotLike(String value) {
            addCriterion("sales_unit_id not like", value, "salesUnitId");
            return (Criteria) this;
        }

        public Criteria andSalesUnitIdIn(List<String> values) {
            addCriterion("sales_unit_id in", values, "salesUnitId");
            return (Criteria) this;
        }

        public Criteria andSalesUnitIdNotIn(List<String> values) {
            addCriterion("sales_unit_id not in", values, "salesUnitId");
            return (Criteria) this;
        }

        public Criteria andSalesUnitIdBetween(String value1, String value2) {
            addCriterion("sales_unit_id between", value1, value2, "salesUnitId");
            return (Criteria) this;
        }

        public Criteria andSalesUnitIdNotBetween(String value1, String value2) {
            addCriterion("sales_unit_id not between", value1, value2, "salesUnitId");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNull() {
            addCriterion("remarks is null");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNotNull() {
            addCriterion("remarks is not null");
            return (Criteria) this;
        }

        public Criteria andRemarksEqualTo(String value) {
            addCriterion("remarks =", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotEqualTo(String value) {
            addCriterion("remarks <>", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThan(String value) {
            addCriterion("remarks >", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
            addCriterion("remarks >=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThan(String value) {
            addCriterion("remarks <", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThanOrEqualTo(String value) {
            addCriterion("remarks <=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLike(String value) {
            addCriterion("remarks like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotLike(String value) {
            addCriterion("remarks not like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksIn(List<String> values) {
            addCriterion("remarks in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotIn(List<String> values) {
            addCriterion("remarks not in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion("remarks between", value1, value2, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion("remarks not between", value1, value2, "remarks");
            return (Criteria) this;
        }

        public Criteria andAdoptStandardIsNull() {
            addCriterion("adopt_standard is null");
            return (Criteria) this;
        }

        public Criteria andAdoptStandardIsNotNull() {
            addCriterion("adopt_standard is not null");
            return (Criteria) this;
        }

        public Criteria andAdoptStandardEqualTo(String value) {
            addCriterion("adopt_standard =", value, "adoptStandard");
            return (Criteria) this;
        }

        public Criteria andAdoptStandardNotEqualTo(String value) {
            addCriterion("adopt_standard <>", value, "adoptStandard");
            return (Criteria) this;
        }

        public Criteria andAdoptStandardGreaterThan(String value) {
            addCriterion("adopt_standard >", value, "adoptStandard");
            return (Criteria) this;
        }

        public Criteria andAdoptStandardGreaterThanOrEqualTo(String value) {
            addCriterion("adopt_standard >=", value, "adoptStandard");
            return (Criteria) this;
        }

        public Criteria andAdoptStandardLessThan(String value) {
            addCriterion("adopt_standard <", value, "adoptStandard");
            return (Criteria) this;
        }

        public Criteria andAdoptStandardLessThanOrEqualTo(String value) {
            addCriterion("adopt_standard <=", value, "adoptStandard");
            return (Criteria) this;
        }

        public Criteria andAdoptStandardLike(String value) {
            addCriterion("adopt_standard like", value, "adoptStandard");
            return (Criteria) this;
        }

        public Criteria andAdoptStandardNotLike(String value) {
            addCriterion("adopt_standard not like", value, "adoptStandard");
            return (Criteria) this;
        }

        public Criteria andAdoptStandardIn(List<String> values) {
            addCriterion("adopt_standard in", values, "adoptStandard");
            return (Criteria) this;
        }

        public Criteria andAdoptStandardNotIn(List<String> values) {
            addCriterion("adopt_standard not in", values, "adoptStandard");
            return (Criteria) this;
        }

        public Criteria andAdoptStandardBetween(String value1, String value2) {
            addCriterion("adopt_standard between", value1, value2, "adoptStandard");
            return (Criteria) this;
        }

        public Criteria andAdoptStandardNotBetween(String value1, String value2) {
            addCriterion("adopt_standard not between", value1, value2, "adoptStandard");
            return (Criteria) this;
        }

        public Criteria andQualityInspectionReportIsNull() {
            addCriterion("quality_inspection_report is null");
            return (Criteria) this;
        }

        public Criteria andQualityInspectionReportIsNotNull() {
            addCriterion("quality_inspection_report is not null");
            return (Criteria) this;
        }

        public Criteria andQualityInspectionReportEqualTo(String value) {
            addCriterion("quality_inspection_report =", value, "qualityInspectionReport");
            return (Criteria) this;
        }

        public Criteria andQualityInspectionReportNotEqualTo(String value) {
            addCriterion("quality_inspection_report <>", value, "qualityInspectionReport");
            return (Criteria) this;
        }

        public Criteria andQualityInspectionReportGreaterThan(String value) {
            addCriterion("quality_inspection_report >", value, "qualityInspectionReport");
            return (Criteria) this;
        }

        public Criteria andQualityInspectionReportGreaterThanOrEqualTo(String value) {
            addCriterion("quality_inspection_report >=", value, "qualityInspectionReport");
            return (Criteria) this;
        }

        public Criteria andQualityInspectionReportLessThan(String value) {
            addCriterion("quality_inspection_report <", value, "qualityInspectionReport");
            return (Criteria) this;
        }

        public Criteria andQualityInspectionReportLessThanOrEqualTo(String value) {
            addCriterion("quality_inspection_report <=", value, "qualityInspectionReport");
            return (Criteria) this;
        }

        public Criteria andQualityInspectionReportLike(String value) {
            addCriterion("quality_inspection_report like", value, "qualityInspectionReport");
            return (Criteria) this;
        }

        public Criteria andQualityInspectionReportNotLike(String value) {
            addCriterion("quality_inspection_report not like", value, "qualityInspectionReport");
            return (Criteria) this;
        }

        public Criteria andQualityInspectionReportIn(List<String> values) {
            addCriterion("quality_inspection_report in", values, "qualityInspectionReport");
            return (Criteria) this;
        }

        public Criteria andQualityInspectionReportNotIn(List<String> values) {
            addCriterion("quality_inspection_report not in", values, "qualityInspectionReport");
            return (Criteria) this;
        }

        public Criteria andQualityInspectionReportBetween(String value1, String value2) {
            addCriterion("quality_inspection_report between", value1, value2, "qualityInspectionReport");
            return (Criteria) this;
        }

        public Criteria andQualityInspectionReportNotBetween(String value1, String value2) {
            addCriterion("quality_inspection_report not between", value1, value2, "qualityInspectionReport");
            return (Criteria) this;
        }

        public Criteria andCertificateOfQualityIsNull() {
            addCriterion("certificate_of_quality is null");
            return (Criteria) this;
        }

        public Criteria andCertificateOfQualityIsNotNull() {
            addCriterion("certificate_of_quality is not null");
            return (Criteria) this;
        }

        public Criteria andCertificateOfQualityEqualTo(String value) {
            addCriterion("certificate_of_quality =", value, "certificateOfQuality");
            return (Criteria) this;
        }

        public Criteria andCertificateOfQualityNotEqualTo(String value) {
            addCriterion("certificate_of_quality <>", value, "certificateOfQuality");
            return (Criteria) this;
        }

        public Criteria andCertificateOfQualityGreaterThan(String value) {
            addCriterion("certificate_of_quality >", value, "certificateOfQuality");
            return (Criteria) this;
        }

        public Criteria andCertificateOfQualityGreaterThanOrEqualTo(String value) {
            addCriterion("certificate_of_quality >=", value, "certificateOfQuality");
            return (Criteria) this;
        }

        public Criteria andCertificateOfQualityLessThan(String value) {
            addCriterion("certificate_of_quality <", value, "certificateOfQuality");
            return (Criteria) this;
        }

        public Criteria andCertificateOfQualityLessThanOrEqualTo(String value) {
            addCriterion("certificate_of_quality <=", value, "certificateOfQuality");
            return (Criteria) this;
        }

        public Criteria andCertificateOfQualityLike(String value) {
            addCriterion("certificate_of_quality like", value, "certificateOfQuality");
            return (Criteria) this;
        }

        public Criteria andCertificateOfQualityNotLike(String value) {
            addCriterion("certificate_of_quality not like", value, "certificateOfQuality");
            return (Criteria) this;
        }

        public Criteria andCertificateOfQualityIn(List<String> values) {
            addCriterion("certificate_of_quality in", values, "certificateOfQuality");
            return (Criteria) this;
        }

        public Criteria andCertificateOfQualityNotIn(List<String> values) {
            addCriterion("certificate_of_quality not in", values, "certificateOfQuality");
            return (Criteria) this;
        }

        public Criteria andCertificateOfQualityBetween(String value1, String value2) {
            addCriterion("certificate_of_quality between", value1, value2, "certificateOfQuality");
            return (Criteria) this;
        }

        public Criteria andCertificateOfQualityNotBetween(String value1, String value2) {
            addCriterion("certificate_of_quality not between", value1, value2, "certificateOfQuality");
            return (Criteria) this;
        }

        public Criteria andProductLicenseIsNull() {
            addCriterion("product_license is null");
            return (Criteria) this;
        }

        public Criteria andProductLicenseIsNotNull() {
            addCriterion("product_license is not null");
            return (Criteria) this;
        }

        public Criteria andProductLicenseEqualTo(String value) {
            addCriterion("product_license =", value, "productLicense");
            return (Criteria) this;
        }

        public Criteria andProductLicenseNotEqualTo(String value) {
            addCriterion("product_license <>", value, "productLicense");
            return (Criteria) this;
        }

        public Criteria andProductLicenseGreaterThan(String value) {
            addCriterion("product_license >", value, "productLicense");
            return (Criteria) this;
        }

        public Criteria andProductLicenseGreaterThanOrEqualTo(String value) {
            addCriterion("product_license >=", value, "productLicense");
            return (Criteria) this;
        }

        public Criteria andProductLicenseLessThan(String value) {
            addCriterion("product_license <", value, "productLicense");
            return (Criteria) this;
        }

        public Criteria andProductLicenseLessThanOrEqualTo(String value) {
            addCriterion("product_license <=", value, "productLicense");
            return (Criteria) this;
        }

        public Criteria andProductLicenseLike(String value) {
            addCriterion("product_license like", value, "productLicense");
            return (Criteria) this;
        }

        public Criteria andProductLicenseNotLike(String value) {
            addCriterion("product_license not like", value, "productLicense");
            return (Criteria) this;
        }

        public Criteria andProductLicenseIn(List<String> values) {
            addCriterion("product_license in", values, "productLicense");
            return (Criteria) this;
        }

        public Criteria andProductLicenseNotIn(List<String> values) {
            addCriterion("product_license not in", values, "productLicense");
            return (Criteria) this;
        }

        public Criteria andProductLicenseBetween(String value1, String value2) {
            addCriterion("product_license between", value1, value2, "productLicense");
            return (Criteria) this;
        }

        public Criteria andProductLicenseNotBetween(String value1, String value2) {
            addCriterion("product_license not between", value1, value2, "productLicense");
            return (Criteria) this;
        }

        public Criteria andOriginInformationIsNull() {
            addCriterion("origin_information is null");
            return (Criteria) this;
        }

        public Criteria andOriginInformationIsNotNull() {
            addCriterion("origin_information is not null");
            return (Criteria) this;
        }

        public Criteria andOriginInformationEqualTo(String value) {
            addCriterion("origin_information =", value, "originInformation");
            return (Criteria) this;
        }

        public Criteria andOriginInformationNotEqualTo(String value) {
            addCriterion("origin_information <>", value, "originInformation");
            return (Criteria) this;
        }

        public Criteria andOriginInformationGreaterThan(String value) {
            addCriterion("origin_information >", value, "originInformation");
            return (Criteria) this;
        }

        public Criteria andOriginInformationGreaterThanOrEqualTo(String value) {
            addCriterion("origin_information >=", value, "originInformation");
            return (Criteria) this;
        }

        public Criteria andOriginInformationLessThan(String value) {
            addCriterion("origin_information <", value, "originInformation");
            return (Criteria) this;
        }

        public Criteria andOriginInformationLessThanOrEqualTo(String value) {
            addCriterion("origin_information <=", value, "originInformation");
            return (Criteria) this;
        }

        public Criteria andOriginInformationLike(String value) {
            addCriterion("origin_information like", value, "originInformation");
            return (Criteria) this;
        }

        public Criteria andOriginInformationNotLike(String value) {
            addCriterion("origin_information not like", value, "originInformation");
            return (Criteria) this;
        }

        public Criteria andOriginInformationIn(List<String> values) {
            addCriterion("origin_information in", values, "originInformation");
            return (Criteria) this;
        }

        public Criteria andOriginInformationNotIn(List<String> values) {
            addCriterion("origin_information not in", values, "originInformation");
            return (Criteria) this;
        }

        public Criteria andOriginInformationBetween(String value1, String value2) {
            addCriterion("origin_information between", value1, value2, "originInformation");
            return (Criteria) this;
        }

        public Criteria andOriginInformationNotBetween(String value1, String value2) {
            addCriterion("origin_information not between", value1, value2, "originInformation");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNull() {
            addCriterion("create_by is null");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNotNull() {
            addCriterion("create_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreateByEqualTo(String value) {
            addCriterion("create_by =", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotEqualTo(String value) {
            addCriterion("create_by <>", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThan(String value) {
            addCriterion("create_by >", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThanOrEqualTo(String value) {
            addCriterion("create_by >=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThan(String value) {
            addCriterion("create_by <", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThanOrEqualTo(String value) {
            addCriterion("create_by <=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLike(String value) {
            addCriterion("create_by like", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotLike(String value) {
            addCriterion("create_by not like", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByIn(List<String> values) {
            addCriterion("create_by in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotIn(List<String> values) {
            addCriterion("create_by not in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByBetween(String value1, String value2) {
            addCriterion("create_by between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotBetween(String value1, String value2) {
            addCriterion("create_by not between", value1, value2, "createBy");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}